import {ref} from 'vue'
import {defineStore} from 'pinia'
const useUserStore=defineStore('user',{
	state:()=>({
		token:'',
		userinfo:{
		}
	}),
  getters: {
    double: (state) => state.count * 2,
  },
	actions:{
		setToken(token){
			this.token=token
		},
		fillUser(userinfo){
			this.userinfo=userinfo;
		}
	},

})
export default useUserStore;